$$ gui.tpl
$$
$$ Java GUI函数库模板
$$

statement: 新建一个窗体 ->
(jnew (jconstructor "javax.swing.JFrame"))

statement: 为窗体{frame}设置关闭按钮 ->
(jcall (jmethod "javax.swing.JFrame" "setDefaultCloseOperation" "int") {frame} 3)

statement: 为窗体 {frame}设置标题{t} ->
(jcall (jmethod "java.awt.Frame" "setTitle" "java.lang.String") {frame} {t})

statement: 为窗体 {frame}设置宽度{w}和高度{h} ->
(jcall (jmethod "java.awt.Window" "setSize" "int" "int") {frame} {w} {h})

statement: 显示窗体 {frame} ->
(jcall (jmethod "java.awt.Window" "setVisible" "boolean") {frame} +true+)

statement: 隐藏窗体 {frame} ->
(jcall (jmethod "java.awt.Window" "setVisible" "boolean") {frame} +false+)

